/**
 * Created by user on 2018/11/15.
 */
module.exports = app => {

    const {STRING, INTEGER} = app.Sequelize

    const Singer = app.model.define('singer',
        {
            id: {type: INTEGER, primaryKey: true, autoIncrement: true},
            singer_mid: STRING(255),
            singer_name: STRING(255),
            singer_country: STRING(255),
            singer_pic: STRING(255)
        },
        {
            freezeTableName: true, // Model 对应的表名将与model名相同
            timestamps: false

        }
    )
    return Singer
}